package com.piccolo.wrapper.client.component.JSNI;

import com.piccolo.wrapper.client.callback.LifeCycleCallback;
import com.piccolo.wrapper.client.callback.StepCallback;
import com.piccolo.wrapper.client.component.Overlay.PActivityOverlay;

public class PActivityJSNI 
{
	public native PActivityOverlay create(StepCallback stepCallback, LifeCycleCallback startedCallback, LifeCycleCallback finishedCallback) 
	/*-{ return new $wnd.PActivity(
		{  
        	step: function(ellapsed) { stepCallback.@com.piccolo.wrapper.client.callback.StepCallback::execute(D)(ellapsed); }, 
        	stared: function(ellapsed) { startedCallback.@com.piccolo.wrapper.client.callback.LifeCycleCallback::execute()(); },
        	finished: function(ellapsed) { finishedCallback.@com.piccolo.wrapper.client.callback.LifeCycleCallback::execute()(); },
    	});
    }-*/;
}
